<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ include file="/commons/taglibs.jsp"%>


<div style="width: 300px;float: right;">
<s:form action="find"  namespace="/" method="get" theme="simple">
	<s:textfield name="q"  />	
	<s:submit value="搜索好友"></s:submit>
</s:form>		
</div>

<div>
<s:if test="#session.sessionUsername==null">
<a href="<s:url action="register" namespace="/"/>">注册</a>,
<a href="<s:url action="login" namespace="/"/>"> 登录 </a>
</s:if>
<s:else>
欢迎你,${sessionUsername}!  
<s:if test="#session.requestsCount>0">
<a href="${BASEURL}/requests.jspa"><span style="color:red;">You have (${requestsCount}) messages.</span></a>
</s:if>

<a href="<s:url action="logout" namespace="/"/>"> 退出 </a>
<table border="0">
<tr>
<td><a href="<s:url action="home" namespace="/"/>">首页</a>,</td>
<td><a href="<s:url action="myHome" namespace="/"/>"> 个人主页 </a>,</td>
<td><a href="<s:url action="registerUpdate" namespace="/"/>">修改信息</a>,</td>
<td><a href="<s:url action="mystatus" namespace="/"/>">My Status,</a></td>
<td><a href="<s:url action="myfriends" namespace="/"/>"> ${sessionUsername}的好友 </a>,</td>
</tr>
</table>
</s:else> 
</div>

<br style="clear: both;">

<hr>